package com.ruoyi.system.mapper.module.product;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.mybatisplus.core.BaseMapperPlus;
import com.ruoyi.system.domain.module.product.ProductOrder;
import com.ruoyi.system.domain.module.excel.ProductOrderExcel;
import com.ruoyi.system.domain.module.excel.ProductOrderMerDetailExcel;
import com.ruoyi.system.domain.module.excel.ProductOrderMerTotalExcel;
import com.ruoyi.system.domain.vo.MonthMoneyVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 订单Mapper接口
 *
 * @author ruoyi
 * @date 2021-08-11
 */
public interface ProductOrderMapper extends BaseMapperPlus<ProductOrder> {

	Double selectTotalMoneyByTime(@Param("map") Map<String,Object> map);

	Double selectFenRunPlatform(@Param("map") Map<String,Object> map);

	Double selectFenRunProperty(@Param("map") Map<String,Object> map);

	Double selectFenRunEstate(@Param("map") Map<String,Object> map);

	/**
	 *  商家订单统计数据
	 * @param map
	 * @return
	 */
	Map<String, Object> selectFenRunMer(@Param("map") Map<String,Object> map);

	List<MonthMoneyVo> selectTotalMoneyByDay(@Param("map") Map<String,Object> map);


	List<ProductOrderExcel> selectExcelListByTime(Page<ProductOrderExcel> page, @Param("map") Map<String,Object> map);

	List<ProductOrderExcel> selectExcelListByTime(@Param("map") Map<String,Object> map);

	ProductOrderExcel selectTongjiByEstateId(@Param("map") Map<String,Object> map);


	List<ProductOrderMerTotalExcel> selectExcelMerTotalListByTime(@Param("map") Map<String,Object> map);

	List<ProductOrderMerDetailExcel> selectExcelMerDetailListByTime(@Param("map") Map<String,Object> map);
}
